package com.esun.payment_api.mapper;

import com.esun.payment_api.bean.PjBean;
import com.esun.payment_api.bean.SumDkReceiveMoneyBean;
import com.esun.payment_api.domain.FkDraftClaim;
import com.esun.payment_api.domain.FkDraftClaimExample;

import java.util.List;

import com.esun.payment_api.dto.PInvInsParam;
import com.esun.payment_api.dto.PjQueryParam;
import org.apache.ibatis.annotations.Param;

public interface FkDraftClaimMapper {
    long countByExample(FkDraftClaimExample example);

    int deleteByExample(FkDraftClaimExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(FkDraftClaim record);

    int insertSelective(FkDraftClaim record);

    List<FkDraftClaim> selectByExample(FkDraftClaimExample example);

    FkDraftClaim selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") FkDraftClaim record, @Param("example") FkDraftClaimExample example);

    int updateByExample(@Param("record") FkDraftClaim record, @Param("example") FkDraftClaimExample example);

    int updateByPrimaryKeySelective(FkDraftClaim record);

    int updateByPrimaryKey(FkDraftClaim record);

    //根据id删除
    int deleteById(Integer id);
    //存储过程
    void pFkInsClaim(@Param("param") PInvInsParam param);
    //获取可选票据列表
    List<PjBean> getFkSelectPjList(@Param("queryParam") PjQueryParam queryParam);
    //按筛选条件，计算：可选票据总金额
    SumDkReceiveMoneyBean getFkSelectPjZje(@Param("queryParam") PjQueryParam queryParam);
    //确认按钮
    int confirmButton(Integer id);
    //取消按钮
    int cancelButton(Integer id);
}